package com.aerotechnic.models;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;


@Entity
@Table(name = "MACROTACHE")
public class MacroTache extends MacroTacheBiblio{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@ManyToOne(fetch = FetchType.EAGER, targetEntity = PlanningMere.class)
	protected PlanningMere planning;
	@OneToMany(fetch = FetchType.EAGER, targetEntity = JobCard.class)
	private Set<JobCard> jobCard = new HashSet<JobCard>(0);
	
	
	public PlanningMere getPlanning() {
		return planning;
	}
	public void setPlanning(PlanningMere planning) {
		this.planning = planning;
	}
	
	public Set<JobCard> getJobCard() {
		return jobCard;
	}
	public void setJobCard(Set<JobCard> jobCard) {
		this.jobCard = jobCard;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
	
	
	

}
